<html>
<%@page contentType="text/html; charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<script language="JavaScript" type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script language="JavaScript" type="text/javascript">
    $(function () {
        $("#button").click(function () {
            alert("确定要删除吗?")
        })
    })
</script>
<body>
<h2>学生信息展示</h2>
<a href="/getGradeName">添加员工信息</a>
<table border="2">
    <tr>
        <td>学生编号</td><td>学生姓名</td><td>性别</td><td>年级编号</td><td>年级名称</td><td>生日</td><td>地址</td><td>操作</td>
    </tr>
    <c:forEach items="${stus.list}" var="s">
        <tr>
            <td>${s.studentno}</td>
            <td>${s.studentname}</td>
            <td>${s.sex}</td>
            <td>${s.gradeid}</td>
            <td><fmt:formatDate value="${s.borndate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
            <td>${s.address}</td>
            <td><a href="/delStu?studentno=${s.studentno}" id="button">删除</a><a href="/getSingleStu?studentno=${s.studentno}">修改</a></td>
        </tr>
    </c:forEach>
</table>
<div>
    <div>每页${stus.pageSize}条,当前第${stus.pageNum}/${stus.pages}页,总共${stus.pages}</div>
</div>
</body>
</html>
